• FFIB: 26a72e180c 增加接口, admin_point_user_temperature_history 4 years ago
    ..
    migrations 26a72e180c 增加接口, admin_point_user_temperature_history 4 years ago
    __init__.py c6838a7aad :art: Basic Realize 5 years ago
    admin.py c8d02379a5 :art: Update list_display 5 years ago
    apps.py c6838a7aad :art: Basic Realize 5 years ago
    models.py c696dea541 :art: Update UserInfoAdmin 5 years ago
    tests.py c6838a7aad :art: Basic Realize 5 years ago
    views.py c6838a7aad :art: Basic Realize 5 years ago
    kodo - Gogs: Go Git Service

    No Description

    basic_pure.html 4.4KB

      {% load staticfiles %} <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="format-detection" content="telephone=no,email=no,address=no"> <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <title>{% block title %}{% endblock %}</title> <link href="//cdnjs.cloudflare.com/ajax/libs/pure/0.6.2/pure-min.css" rel="stylesheet"> {% block link %}{% endblock %} <style> body { font-family: Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif !important; background: #fff; } img { pointer-events: none; } .clickable { pointer-events: auto; } /* Input 自动填充后,移除 Chrome 默认黄色 */ input:-webkit-autofill { box-shadow: 0 0 0 1000px white inset !important; } .container { padding-bottom: 45px; } .text-center { text-align: center; } .empty { color: #999; padding: .9375rem 0; font-size: .625rem; } .text_ellipsis { overflow:hidden; white-space:nowrap; text-overflow: ellipsis; } .fl { float: left; } .fr { float: right; } .clearfix { zoom: 1; } .clearfix:after { content: "\200B"; display: block; height: 0; clear: both; } </style> {% block tohomecss %} <style> .tohome { width: 40px; height: 40px; background-color: rgba(139, 139, 139, 0.7); position: fixed; right: 10px; bottom: 20px; border-radius: 9999px; border-top-left-radius: 9999px; border-top-right-radius: 9999px; border-bottom-left-radius: 9999px; border-bottom-right-radius: 9999px; z-index: 99999999; } .tohome img { display: block; width: 18px; height: 13px; margin: 6px auto 2px; } .tohome p { color: #ffffff; } </style> {% endblock %} {% block css %}{% endblock %} <script> {% block rem %} //这段js的最后面有两个参数记得要设置,一个为设计稿实际宽度,一个为制作稿最大宽度,例如设计稿为750,最大宽度为750,则为(750,750) !function(e,t){function n(){var n=l.getBoundingClientRect().width;t=t||540,n>t&&(n=t);var i=100*n/e;r.innerHTML="html{font-size:"+i+"px;}"}var i,d=document,o=window,l=d.documentElement,r=document.createElement("style");if(l.firstElementChild)l.firstElementChild.appendChild(r);else{var a=d.createElement("div");a.appendChild(r),d.write(a.innerHTML),a=null}n(),o.addEventListener("resize",function(){clearTimeout(i),i=setTimeout(n,300)},!1),o.addEventListener("pageshow",function(e){e.persisted&&(clearTimeout(i),i=setTimeout(n,300))},!1),"complete"===d.readyState?d.body.style.fontSize="16px":d.addEventListener("DOMContentLoaded",function(e){d.body.style.fontSize="16px"},!1)}(750,750); {% endblock %} </script> </head> <body> {% block somehtml %}{% endblock %} <div class="container"> {% block container %}{% endblock %} </div> {% block somehtml2 %}{% endblock %} <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> {% block script %}{% endblock %} <script> {% block glbjs %}{% endblock %} $(function() { {% block js %}{% endblock %} }); </script> </body> </html>
    导游电话记录及按钮显示 · 6666c09e7a - Gogs: Go Git Service

    导游电话记录及按钮显示

    chengzhenyu лет %!s(int64=10): %!d(string=назад)
    Родитель
    Сommit
    6666c09e7a
    1 измененных файлов с 19 добавлено и 9 удалено
    1. 19 9
        app/src/main/java/ai/pai/client/activity/MainActivity.java

    + 19 - 9
    app/src/main/java/ai/pai/client/activity/MainActivity.java

    @@ -20,6 +20,7 @@ import android.view.LayoutInflater;
    20 20
     import android.view.MenuItem;
    21 21
     import android.view.View;
    22 22
     import android.view.ViewGroup;
    23
    +import android.widget.ImageButton;
    23 24
     import android.widget.ImageView;
    24 25
     import android.widget.TextView;
    25 26
     import android.widget.Toast;
    @@ -56,6 +57,7 @@ public class MainActivity extends AppCompatActivity
    56 57
         private long exitTime;
    57 58
         private String guideId;
    58 59
         private PersonInfoPopup personInfoPopup;
    60
    +    private ImageButton callGuideBtn;
    59 61
         @Override
    60 62
         protected void onCreate(Bundle savedInstanceState) {
    61 63
             super.onCreate(savedInstanceState);
    @@ -86,12 +88,20 @@ public class MainActivity extends AppCompatActivity
    86 88
             ImageView drawerToggle = (ImageView) findViewById(R.id.drawer_toggle);
    87 89
             PhotoLoader.getInstance(this).displayImage(Preferences.getInstance(this).getUserAvatar(), drawerToggle,PhotoLoader.getUserAvatarOptions());
    88 90
             drawerToggle.setOnClickListener(this);
    91
    +        callGuideBtn = (ImageButton)findViewById(R.id.floating_btn_call);
    89 92
             findViewById(R.id.floating_btn_add).setOnClickListener(this);
    90 93
             findViewById(R.id.floating_btn_scan).setOnClickListener(this);
    91
    -        findViewById(R.id.floating_btn_call).setOnClickListener(this);
    94
    +        callGuideBtn.setOnClickListener(this);
    92 95
         }
    93 96
     
    94 97
         @Override
    98
    +    protected void onResume() {
    99
    +        super.onResume();
    100
    +        callGuideBtn.setVisibility(TextUtils.isEmpty(Preferences.getInstance(this).getTourGuidePhone()) ? View.INVISIBLE : View.VISIBLE);
    101
    +    }
    102
    +
    103
    +
    104
    +    @Override
    95 105
         protected void onStop() {
    96 106
             super.onStop();
    97 107
             if (isBound) {
    @@ -142,14 +152,6 @@ public class MainActivity extends AppCompatActivity
    142 152
                 case R.id.nav_photo_groups:
    143 153
                     startActivity(new Intent(MainActivity.this, GroupListActivity.class));
    144 154
                     break;
    145
    -            case R.id.floating_btn_call:
    146
    -                String tmp = "15901049735";
    147
    -                Uri uri=Uri.parse("tel:"+tmp);
    148
    -                Intent intent=new Intent();
    149
    -                intent.setAction(Intent.ACTION_CALL);
    150
    -                intent.setData(uri);
    151
    -                startActivity(intent);
    152
    -                break;
    153 155
                 default:
    154 156
                     break;
    155 157
             }
    @@ -194,6 +196,14 @@ public class MainActivity extends AppCompatActivity
    194 196
                     joinTourGuideGroup(guideId,personInfoPopup.getInputName(),personInfoPopup.getInputPhone());
    195 197
                     personInfoPopup.dismiss();
    196 198
                     break;
    199
    +            case R.id.floating_btn_call:
    200
    +                String tmp = Preferences.getInstance(this).getTourGuidePhone();
    201
    +                Uri uri=Uri.parse("tel:"+tmp);
    202
    +                Intent callIntent=new Intent();
    203
    +                callIntent.setAction(Intent.ACTION_CALL);
    204
    +                callIntent.setData(uri);
    205
    +                startActivity(callIntent);
    206
    +                break;
    197 207
             }
    198 208
         }
    199 209